package com.jietu.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 
 * @TableName car
 */
@Data

public class Car implements Serializable {
    /**
     * 编号
     */
    private Integer cid;

    /**
     * 车次
     */
    private String cnum;

    /**
     * 出发地
     */
    private String startaddress;

    /**
     * 到达地
     */
    private String endaddress;

    /**
     * 发车时间
     */
    private Date stime;

    /**
     * 到达时间
     */
    private Date etime;

    /**
     * 车辆类型编号
     */
    private Integer tid;

    /**
     * 票件
     */
    private Double price;
    /**
     * 类型名称
     */
    private  String  tname;

    public Car(Integer cid, String cnum, String startaddress, String endaddress, Date stime, Date etime, Integer tid, Double price) {
        this.cid = cid;
        this.cnum = cnum;
        this.startaddress = startaddress;
        this.endaddress = endaddress;
        this.stime = stime;
        this.etime = etime;
        this.tid = tid;
        this.price = price;
    }

    private static final long serialVersionUID = 1L;
}